#include<iostream>
#include<stdlib.h>
#include<time.h>
using namespace std;
int all[100];
int main()
{
    int cnt,n;
    cin>>cnt>>n;
    srand(unsigned(time(NULL)));
    for(int i=1;i<=cnt;i++)
    {
        all[(rand()>>2)%n+1]++;
    }
    for(int i=1;i<=n;i++)
    cout<<all[i]<<" ";
}